﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAL;


namespace BLL
{
   public class EmpRewardsBiz
    {
       EmpRewardsDao empRewardsDao = new EmpRewardsDao();
       public bool Insert(string tableName, SortedDictionary<string, string> sdList)
       {
           return empRewardsDao.Insert(tableName, sdList);
       }


       public bool Update(string tableName, SortedDictionary<string, string> sdList)
       {
           return empRewardsDao.Update(tableName, sdList);
       }

       public bool DeleteOneInfo(string rewardsID)
       {
           return empRewardsDao.DeleteOneInfo(rewardsID);
       }
       public DataTable GetOneInfo(string rewardsID)
       {
           return empRewardsDao.GetOneInfo(rewardsID);
       }

       public DataTable GetLists(string deptID, string serWord, string bTime, string eTime, string typeID)
       {
           return empRewardsDao.GetLists(deptID, serWord, bTime, eTime, typeID);
       }
       public DataTable GetLists(string deptID, string serWord, string bTime, string eTime, string typeID, string Export)
       {
           return empRewardsDao.GetLists(deptID, serWord, bTime, eTime, typeID, Export);
       }
       public string GetSQL(string deptID, string serWord, string bTime, string eTime, string typeID)
       {
            return empRewardsDao.GetSQL(deptID, serWord, bTime, eTime, typeID);
       }
       public DataTable GetStatisticByEmp(string typeName, string bTime, string eTime)
       {  return empRewardsDao.GetStatisticByEmp(typeName, bTime, eTime);
       }
       public DataTable GetStatisticByDept(string typeName, string bTime, string eTime)
       {
           return empRewardsDao.GetStatisticByDept(typeName, bTime, eTime);
       }
    }
}
